package com.gary;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
 *
 * 项目异常：
 *  java.lang.ClassNotFoundException: java.lang.reflect.InaccessibleObjectException
 * 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_161]
 * 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_161]
 * 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) ~[na:1.8.0_161]
 *  使用缓存需要先开启缓存功能
 *  @EnableCaching
 *  Mybatis操作数据库
 *  @MapperScan
 * @author Administrator
 */
@MapperScan(value = "com.gary.mapper")
@SpringBootApplication
@EnableCaching
public class SpringbootCacheApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootCacheApplication.class, args);
    }

}
